﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices.ComTypes;

namespace Kele.Activity.Models.Dto
{
    public class ActivityInputDto
    {
        public int Id { get; set; }
        public int MerchantId { get;set;}

        public int FormId { get; set; }
        public int SkinId { get; set; }
        public int MusicId { get; set; }
        public string Title { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }              
        public string Rule { get; set; }
        public string Description { get; set; }
        public bool IsRecommend  { get; set; }
        public JArray Fields { get; set; }
        public JArray Stores { get; set; }
        public JArray Images { get; set; }
        public JArray TopImages { get; set; }
        public JObject Props { get; set; }



         public  JToken GetValue(string key){

            switch (key)
            {
                case "title":
                    return JToken.FromObject(Title);     
                case "images" :
                    return Images;
                 
                default:
                    return Props.GetValue(key);
            }

    } } }
